{extend name="layout_modal" /}
{block name="content"}
<section class="content" style="padding-top:0px;">
    <div class="row">
        <div class="box">
            <form role="form" action="{:url('data_save')}">
                <div class="box-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">优惠券标题</label>
                        <input type="text" class="form-control" placeholder="请输入优惠券标题" name="name">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">商品图片</label>
                        <div class="input-group input-group-sm">
                            <input type="text" class="form-control" name="image" id="image_text" value="">
                            <span class="input-group-btn">
                                <input id="image" class="upload_picker" type="file" btnTxt="上传图片">
                            </span>
                        </div>
                        <div id="queue_image"></div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">优惠券分类</label>
                        <select class="form-control" name="type">
                            <option value="">请选择</option>
                            <option value="tongyong">通用券</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">核销类型(该通用券应由哪类总监进行核销)</label>
                        <select class="form-control" name="canceltype">
                            <option value="">请选择</option>
                            {volist name=":config('HEXIAO_TYPE')" id="v"}
                                <option value="{$key}">{$v}</option>
                            {/volist}
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">折扣类别</label>
                        <input type="radio" name="distype" value="1" style="margin-left: 15px;" checked> 人民币
                        <input type="radio" name="distype" value="2" style="margin-left: 15px;"> 折扣
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">折扣价格</label>
                        <input type="text" class="form-control" placeholder="请输入折扣价格，如：9(九折)，100(元)。与折扣类别对应" name="price" value="">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">有效天数</label>
                        <input type="text" class="form-control" placeholder="请输入有效天数" name="validdays">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">开始发券时间</label>
                        <input type="text" class="form-control date" placeholder="无弹窗日期选择框，请按照2000-01-01输入" name="opentime">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">结束发券时间</label>
                        <input type="text" class="form-control date" placeholder="无弹窗日期选择框，请按照2000-01-01输入" name="closetime">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">生效时间</label>
                        <input type="text" class="form-control date" placeholder="无弹窗日期选择框，请按照2000-01-01输入" name="starttime">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">失效时间</label>
                        <input type="text" class="form-control date" placeholder="无弹窗日期选择框，请按照2000-01-01输入" name="endtime">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">是否可转赠</label>
                        <input type="radio" name="isgive" value="1" style="margin-left: 15px;" checked> 可以
                        <input type="radio" name="isgive" value="0" style="margin-left: 15px;"> 不可以
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">购买会员赠送</label>
                        <input type="radio" name="isbuyvip" value="0" style="margin-left: 15px;" checked> 否
                        <input type="radio" name="isbuyvip" value="1" style="margin-left: 15px;"> 是
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">有效期和会员相同(如果选择‘相同’，则上边的‘失效时间’设置无效)</label>
                        <input type="radio" name="isrelyvip" value="0" style="margin-left: 15px;" checked> 否
                        <input type="radio" name="isrelyvip" value="1" style="margin-left: 15px;"> 是
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">累计使用</label>
                        <input type="radio" name="usemore" value="0" style="margin-left: 15px;" checked> 不可以
                        <input type="radio" name="usemore" value="1" style="margin-left: 15px;"> 可以
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">状态</label>
                        <input type="radio" name="status" value="1" style="margin-left: 15px;" checked> 显示
                        <input type="radio" name="status" value="0" style="margin-left: 15px;"> 隐藏
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>
{/block}